/*
 * Copyright (C) 2011 Wglxy.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.wglxy.example.dash1;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;


public class Dash_Business extends TabActivity 
{

	

protected void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView (R.layout.activity_f3);
    //setTitleFromActivityLabel (R.id.title_text);
    
TabHost tabHost = getTabHost();
    
    // Tab for B2B
    TabSpec bbspec = tabHost.newTabSpec("B2B");
    bbspec.setIndicator("B2B", getResources().getDrawable(R.drawable.icon_photos_tab));
    Intent bbIntent = new Intent(this, B2B.class);
    bbspec.setContent(bbIntent);
    
    // Tab for B2C
    TabSpec bcspec = tabHost.newTabSpec("B2C");
    // setting Title and Icon for the Tab
    bcspec.setIndicator("B2C", getResources().getDrawable(R.drawable.icon_songs_tab));
    Intent bcIntent = new Intent(this, B2C.class);
    bcspec.setContent(bcIntent);
    
    // Tab for foire
    TabSpec foirespec = tabHost.newTabSpec("Foire");
    foirespec.setIndicator("Foire", getResources().getDrawable(R.drawable.icon_videos_tab));
    Intent foireIntent = new Intent(this, Foire.class);
    foirespec.setContent(foireIntent);
    
    // Tab for Colloque
    TabSpec colspec = tabHost.newTabSpec("Colloque");
    colspec.setIndicator("Colloque", getResources().getDrawable(R.drawable.icon_photos_tab));
    Intent colIntent = new Intent(this, Colloque.class);
    colspec.setContent(colIntent);
    
    // Adding all TabSpec to TabHost
    tabHost.addTab(bbspec); // Adding photos tab
    tabHost.addTab(bcspec); // Adding songs tab
    tabHost.addTab(foirespec); // Adding videos tab
    tabHost.addTab(colspec); // Adding videos tab
}

    
} // end class
